cellarea: Fix warning messages to display the right type
authorBenjamin Otte <otte@redhat.com>
Mon, 2 May 2011 16:36:14 +0000 (18:36 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 2 May 2011 18:09:17 +0000 (20:09 +0200)
The warning displayed the type of the area instead of the cell
renderer's type before.

gtk/gtkcellarea.c

index 27ae333db31b4af338c89c50cf08422bde8ebe3b..0af3c53df561594103f19085fa71876d290ec0bd 100644 (file)
@@ -2266,7 +2266,7 @@ gtk_cell_area_attribute_connect (GtkCellArea        *area,
           g_warning ("Cannot connect attribute `%s' for cell renderer class `%s' "
                      "since `%s' is already attributed to column %d",
                      attribute,
-                     g_type_name (G_TYPE_FROM_INSTANCE (area)),
+                     G_OBJECT_TYPE_NAME (renderer),
                      attribute, cell_attribute->column);
           return;
         }
@@ -2279,7 +2279,7 @@ gtk_cell_area_attribute_connect (GtkCellArea        *area,
       g_warning ("Cannot connect attribute `%s' for cell renderer class `%s' "
                  "since attribute does not exist",
                  attribute,
-                 g_type_name (G_TYPE_FROM_INSTANCE (area)));
+                 G_OBJECT_TYPE_NAME (renderer));
       return;
     }